<!DOCTYPE html>
<html>
<head th:include="common/header_css::header('霸王餐小程序后台管理-微信模板消息记录','%mfile%datepicker')"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox float-e-margins">
        <div th:replace="common/toolbar::toolbar('微信模板消息记录管理')"></div>
        <div th:replace="common/search::search('%add')"></div>
        <!-- End Panel Basic -->
    </div>
</div>

<!--添加Templatemsg模态框-->
<div id="modal-add-form" class="modal fade" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-body">
                <div class="row">
                    <h3 class="m-t-none m-b">微信模板消息记录添加</h3>
                    <div class="col-sm-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-content">
                                <form method="post" class="form-horizontal" action="add" onsubmit="return checkAdd()">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">模板ID</label>
                                                <div class="col-sm-10">
                                                    <input type="text" class="form-control" name="tplid">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">模板code</label>
                                                <div class="col-sm-8">
                                                    <input type="text" class="form-control" name="tplcode">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">标题</label>
                                                <div class="col-sm-8">
                                                    <input type="text" class="form-control" name="tplname">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">内容1</label>
                                                <div class="col-sm-8">
                                                    <input type="text" class="form-control" name="keyname1">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">字段1</label>
                                                <div class="col-sm-8">
                                                    <input type="text" class="form-control" name="keycode1">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">内容2</label>
                                                <div class="col-sm-8">
                                                    <input type="text" class="form-control" name="keyname2">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">字段2</label>
                                                <div class="col-sm-8">
                                                    <input type="text" class="form-control" name="keycode2">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">内容3</label>
                                                <div class="col-sm-8">
                                                    <input type="text" class="form-control" name="keyname3">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">字段3</label>
                                                <div class="col-sm-8">
                                                    <input type="text" class="form-control" name="keycode3">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">内容4</label>
                                                <div class="col-sm-8">
                                                    <input type="text" class="form-control" name="keyname4">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">字段4</label>
                                                <div class="col-sm-8">
                                                    <input type="text" class="form-control" name="keycode4">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">内容5</label>
                                                <div class="col-sm-8">
                                                    <input type="text" class="form-control" name="keyname5">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">字段5</label>
                                                <div class="col-sm-8">
                                                    <input type="text" class="form-control" name="keycode5">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">是否一次性订阅</label>
                                                <div class="col-sm-8">
                                                    <input type="checkbox" class="js-switch" name="isonce">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">跳转页面</label>
                                                <div class="col-sm-8">
                                                    <input type="text" class="form-control" name="page">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-2">
                                            <button class="btn btn-primary" type="submit">保存内容</button>
                                            <button data-toggle="modal" type="button" class="btn btn-white"
                                                    href="#modal-add-form">取消
                                            </button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!--修改Templatemsg模态框-->
<div id="modal-form" class="modal fade" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-body">
                <div class="row">
                    <h3 class="m-t-none m-b">微信模板消息记录修改</h3>
                    <div class="col-sm-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-content">
                                <form method="post" class="form-horizontal" action="modify" onsubmit="return checkModify()">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">模板ID</label>
                                                <div class="col-sm-10">
                                                    <input type="text" class="form-control" id="tplid" name="tplid">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">模板code</label>
                                                <div class="col-sm-8">
                                                    <input type="text" class="form-control" id="tplcode" name="tplcode">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">标题</label>
                                                <div class="col-sm-8">
                                                    <input type="text" class="form-control" id="tplname" name="tplname">
                                                </div>
                                            </div>
                                        </div>
                                    </div>


                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">内容1</label>
                                                <div class="col-sm-8">
                                                    <input type="text" class="form-control" id="keyname1" name="keyname1">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">字段1</label>
                                                <div class="col-sm-8">
                                                    <input type="text" class="form-control" id="keycode1" name="keycode1">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">内容2</label>
                                                <div class="col-sm-8">
                                                    <input type="text" class="form-control" id="keyname2" name="keyname2">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">字段2</label>
                                                <div class="col-sm-8">
                                                    <input type="text" class="form-control" id="keycode2" name="keycode2">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">内容3</label>
                                                <div class="col-sm-8">
                                                    <input type="text" class="form-control" id="keyname3" name="keyname3">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">字段3</label>
                                                <div class="col-sm-8">
                                                    <input type="text" class="form-control" id="keycode3" name="keycode3">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">内容4</label>
                                                <div class="col-sm-8">
                                                    <input type="text" class="form-control" id="keyname4" name="keyname4">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">字段4</label>
                                                <div class="col-sm-8">
                                                    <input type="text" class="form-control" id="keycode4" name="keycode4">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">内容5</label>
                                                <div class="col-sm-8">
                                                    <input type="text" class="form-control" id="keyname5" name="keyname5">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">字段5</label>
                                                <div class="col-sm-8">
                                                    <input type="text" class="form-control" id="keycode5" name="keycode5">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">是否一次性订阅</label>
                                                <div class="col-sm-8">
                                                    <input type="checkbox" id="isonce" name="isonce">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="col-sm-4 control-label">跳转页面</label>
                                                <div class="col-sm-8">
                                                    <input type="text" class="form-control" id="page" name="page">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-2">
                                            <button class="btn btn-primary" type="submit">保存内容</button>
                                            <button data-toggle="modal" type="button" class="btn btn-white"
                                                    href="#modal-form">取消
                                            </button>
                                        </div>
                                    </div>
                                    <input id="id" name="id" type="hidden" value=""/>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div th:include="common/footer_js::footer"></div>
<script src="/js/admin/templatemsg.js"></script>
</body>
</html>
